Revert "GtkPlacesSidebar: use gtk api to add dnd uri targets"
authorMatthias Clasen <mclasen@redhat.com>
Wed, 23 Oct 2013 19:54:44 +0000 (15:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 23 Oct 2013 19:54:44 +0000 (15:54 -0400)
This reverts commit 7fa27dff259ad79d5a4364d7eaa6b63150082af3.

gtk/gtkplacessidebar.c

index f86815c9e28ded15599e0a7ae0b30b1401e79dd4..614bb4f03b60203c88faa953a7cb45d76a6f7a16 100644 (file)
@@ -302,6 +302,7 @@ static const GtkTargetEntry dnd_source_targets[] = {
 /* Target types for dropping into the shortcuts list */
 static const GtkTargetEntry dnd_drop_targets [] = {
        { "GTK_TREE_MODEL_ROW", GTK_TARGET_SAME_WIDGET, GTK_TREE_MODEL_ROW },
+       { "text/uri-list", 0, TEXT_URI_LIST },
        { "XdndDirectSave0", 0, XDND_DIRECT_SAVE } /* XDS Protocol Type */
 };
 
@@ -3824,7 +3825,6 @@ gtk_places_sidebar_init (GtkPlacesSidebar *sidebar)
                           GDK_ACTION_MOVE | GDK_ACTION_COPY | GDK_ACTION_LINK);
 
        target_list = gtk_target_list_new (dnd_drop_targets, G_N_ELEMENTS (dnd_drop_targets));
-       gtk_target_list_add_uri_targets (target_list, TEXT_URI_LIST);
        gtk_target_list_add_text_targets (target_list, TEXT);
        gtk_drag_dest_set_target_list (GTK_WIDGET (tree_view), target_list);
        gtk_target_list_unref (target_list);